package com.example.dou2204.ban;

import androidx.lifecycle.MutableLiveData;

import com.example.dou2204.baseMVVM.BaseViewModel;
import com.example.dou2204.entity.BannerEntity;

public class BannerViewModel extends BaseViewModel<BannerRepo> {
    @Override
    protected BannerRepo createRepo() {
        return new BannerRepo();
    }

    public MutableLiveData<BannerEntity> success = new MutableLiveData<>();
    public MutableLiveData<String> fail = new MutableLiveData<>();

    public void banner(){
        repo.banner(success,fail);
    }
}
